package com.shijunhao.graduation.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author: shijunhao
 * @date: 2022/4/15 15:54
 * @description:
 */
@ApiModel("饼状图数据")
public class PieCulVo {
    @ApiModelProperty("名称")
    private String name;
    @ApiModelProperty(value = "值",example = "1")
    private Integer value;

    public PieCulVo() {
    }

    public PieCulVo(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public void addValue(int val) {
        this.value += val;
    }
}
